SetGlobalMROTag

Use this function to assign the given parameter string as the Global Context Tag associated with the active transaction document. This procedure optionally returns one (1) on success or zero (0) on failure.

Using this function will override any previously assigned Global Context Tag assigned to the document whether assigned implicitly via the triggering process or by previous script assignment.

Passing an empty string to this function, for example: SetGlobalMROTag("") is the equivalent of removing the document assigned Global Context Tag and will allow the mobile responsive generation to use normal defaults for all snippet references.

Call this function when processing a transaction, via a pre-trans dal rule, or when processing a form in the group via trigger or script. If you have defined a Global Context Tag on the Form List in Studio, this value will take precedence. If you want to have a default Global Context and override with a script, also set the default in the script.

The Global Context Tag determines the initial snippet names used by mobile responsive output (MRO). If a tag is defined, then it is assumed that the transaction will attempt to use specific snippet names before reverting to defaults.

 

Note: The tag being assigned must conform to the Global Context tag requirements.

Syntax:

SetGlobalMROTag("")

Parameter Description Defaults to...
String String that defines the Global Context Tag to assign no default

Example

SetGlobalMROTag("claim")

See also

Miscellaneous Functions